import Layout from '@/layout'

const componentsRouter = {
  path: '/components',
  component: Layout,
  redirect: '/components/list',
  name: 'ComponentDemo',
  meta: {
    title: 'Components',
    auth: ['admin'],
  },
  children: [
    {
      path: 'list',
      component: () => import('@/pages/components-demo/index'),
      name: 'demoList',
      meta: { title: 'DemoList', auth: ['admin'] },
    },
  ],
}

export default componentsRouter
